package com.xqls.dal.dao.mybatis;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.xqls.dal.dao.WastegasSamplingDao;
import com.xqls.dal.model.WastegasSampling;
import com.xqls.dal.service.WastegasSamplingMapper;
@Repository
public class WastegasSamplingDaoImpl implements WastegasSamplingDao{

	@Autowired private WastegasSamplingMapper mapper;
	@Override
	public int insertWastegasSamplingList(WastegasSampling wastegasSampling) {
		return mapper.insertSelective(wastegasSampling);
	}

	@Override
	public List<Map<String, Object>> selectByMap(Map<String, Object> map) {
		return mapper.selectByMap(map);
	}

	@Override
	public int updateWastegasSamplingList(WastegasSampling wastegasSampling) {
		return mapper.updateByPrimaryKeySelective(wastegasSampling);
	}

	@Override
	public WastegasSampling queryRecordByDeviceNo(String deviceNo) {
		return mapper.selectRrcordNoBydeviceNo(deviceNo);
	}

}
